
const { ccclass, property, menu } = cc._decorator;

@ccclass
@menu("JhaoUI/JhaoSlider")
export class JhaoSlider extends cc.Slider {


    @property(cc.Node)
    private bg: cc.Node = null

    protected update(dt: number): void {
        this.bg.width = this.progress * this.node.width
    }

}